package com.guli.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zxc
 * @date 2023/04/26 15:02
 **/
@SpringBootApplication
@ComponentScan(basePackages = {"com.guli"})
@MapperScan(basePackages = {"com.guli.edu.mapper"})
@EnableDiscoveryClient // 允许该微服务模块被nacos注册中心所发现
@EnableFeignClients // 允许该微服务模块去调用其他微服务模块的方法
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class , args);
    }
}
